<%@page import="java.util.ArrayList"%>
<%@page import="com.portal4kids.model.Info"%>
<%@page import="com.portal4kids.controller.InfoManager"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Iterator"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/search_style.css">
<title>Portal for kids</title>
</head>
<body background="../images/bg_search.jpg">
<div id="top">
 <ul id=menu>
      <li><a href="../index.jsp">home</a></li>
      <li><a href="newses.jsp">aktualności</a></li>

      <li><a href=#>oceny</a></li>
      <li><a href="aboutAs.jsp">o nas</a></li>
      <li><a href="contact.jsp">kontakt</a></li>
    </ul>
</div>



<div style="float: left; width: 70%; margin-left: 15%;"> 
	
<% InfoManager man = new InfoManager();
	List<Info> infoList = new ArrayList<Info>();
	infoList = man.getInfoFromDBAfterType("ONas");
	
%>	
	<h2><%= infoList.iterator().next().getDescription() %></h2>
	
</div> 

</body>
</html>